This repository was archived by the owner on Aug 28, 2024. It is now read-only.
fix "Lite Interpreter verson number does not match"#271
Open
doutv wants to merge 1 commit intopytorch:masterfrom
Open
fix "Lite Interpreter verson number does not match"#271doutv wants to merge 1 commit intopytorch:masterfrom
doutv wants to merge 1 commit intopytorch:masterfrom
Conversation
1. pip install specifying the LTS version of torch and torchvision 2. upgrade org.pytorch:pytorch_android_lite and org.pytorch:pytorch_android_torchvision_lite to 1.12.2
|
@doutv Hello. I am getting the following error and I don't know how to fix it. Can you please give me some tips or direction how to fix the error to be able launch the object detection app. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix the bug in Issue #202
When I run HelloWorldApp, I met this error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.pytorch.helloworld/org.pytorch.helloworld.MainActivity}: com.facebook.jni.CppException: Lite Interpreter verson number does not match. The model version must be between 3 and 5But the model version is 8 ()My solution:
pip install. I also add arequirements.txthere.org.pytorch:pytorch_android_liteandorg.pytorch:pytorch_android_torchvision_liteto latest version1.12.2.